<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php echo $title;?></title>
    <link rel="stylesheet" type="text/css" href="../public/css/index.css">
    <script type="text/javascript" src="../public/js/jquery.min.js"></script>
	<!-- 字体 -->
	<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
	
	<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
	<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

	<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
	<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>
	<div id="head"><?php model();?></div>
   <h2>成绩排名</h2>
		<div id ="menu"> 
            <ul class="fmt">
				<li ><a href="../index.php">主页</a></li>
				<li ><a href="single.php">单选训练</a></li>   
				<li ><a href="judge.php">判断训练</a></li> 
				<li ><a href="multiple.php">多选训练</a></li> 
				<li ><a href="fill.php">填空训练</a></li> 
				<li ><a href="userInfo.php">考生信息</a></li>
				<li ><a href="test.php">在线考试</a></li>    
                <li class="active"><a href="list.php">成绩排名</a></li>                                                
            </ul> 
        </div>
		
		<div id="main" style="margin-top: 1%;">
  			<table class="table table-hover" style="width: 75%;border-collapse: collapse" align="center">
				<tr>
					<th>id</th>
					<th>name</th>
					<th>成绩</th>
					<th>时间</th>
				</tr>
				<?php foreach($list as $k => $v):?>
				<tr>
					<td><?php echo $v['id'];?></td>
					<td><?php echo $v['name'];?></td>
					<td><?php echo $v['score'];?></td>
					<td><?php echo $v['time'];?></td>
				</tr>
				<?php endforeach;?>
			</table>
 			
		</div>
		<footer>
            <p>本网页用于设计在线考试卷系统</p>
        </footer>
	</div>
</body>
</html>
<script>
	$(function(){

	});
</script>
